<template>
  <div class="article">
     <art-item v-for="item in artArrList" :key="item.id" :itemObj=item></art-item>
  </div>
</template>

<script>
import { artAxios } from '@/network/indexAxios.js'
import ArtItem from '@/components/ArtItem'
export default {
  components: {
    ArtItem
  },
  data () {
    return {
      artArrList: []
    }
  },
  mounted () {
    this.getArtData()
  },
  methods: {
    getArtData () {
      artAxios().then(res => {
        this.artArrList = res.data
      })
    }
  }
}
</script>

<style lang="less" scoped>
.article{
  padding: 0.6rem 0.2rem;
}
</style>
